package com.yikes.srb.mapper;

import com.yikes.srb.pojo.entity.LendItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 标的出借记录表 Mapper 接口
 * </p>
 *
 * @author guanrong.yin
 * @since 2024-12-03
 */
@Mapper
public interface LendItemMapper extends BaseMapper<LendItem> {

    @Select("select * from lend_item where lend_id = #{lendId} and status = #{status}")
    List<LendItem> selectItemList(@Param("lendId") Long lendId, @Param("status") Integer status);
}
